import { defineStore } from 'pinia'

export const useStore = defineStore('main', {
    state: () => {
        return {
            token: '',
            count: 0
        }
    },
    actions: {
        increment() {
            this.count++
        },
    },
    // persist: true,
    persist: {
        storage: sessionStorage
    }
})